package com.zmc.dynamic.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zmc.dynamic.mapper.CashOrderMapper;
import com.zmc.dynamic.service.CashOrderService;
import com.zmc.dynamic.domain.CashOrder;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DS("shardingSphere")
public class CashOrderServiceImpl extends ServiceImpl<CashOrderMapper, CashOrder> implements CashOrderService {

    @Override
    public boolean beachInsert(List<CashOrder> list) {
        return saveBatch(list);
    }
}
